﻿using System;
using System.IO;

public partial class SWFReader : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }   

protected void Button1_Click(object sender, EventArgs e)
    {
        FlashHeaderReader swfreader = new FlashHeaderReader(FileUpload1.FileName);
        ListBox1.Items.Clear();
        ListBox1.Items.Add("Frames : " + swfreader.FrameCount);
        ListBox1.Items.Add("Width : " + swfreader.Width);
        ListBox1.Items.Add("Height : " + swfreader.Height);
        ListBox1.Items.Add("Rate : " + swfreader.FrameRate);
        ListBox1.Items.Add("Count : " + swfreader.FrameCount);
        ListBox1.Items.Add("Seconds : " + (swfreader.FrameCount / swfreader.FrameRate));
    }
}
